package com.yimingkeji.freemarker.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Describe:
 * @Auther: zhenlong.yang
 * @Date: 2018/12/28 21:12
 */
@Controller
public class IndexController {
    @RequestMapping({"","index"})
    public String index(Model model){
        model.addAttribute("name", "哈哈哈");
        return "index";
    }
}
